package stef.home.arp.labos1.main;

import stef.home.arp.labos1.matrix.Matrix;
import stef.home.arp.labos1.matrix.Op;
import stef.home.arp.labos1.utils.Utils;

public class Main {

	public static void main(String[] args) {
		Matrix A,b = null;
		if(args.length == 0){
			A = Utils.createMatrix("A.txt");
			b = Utils.createMatrix("b.txt");
		}
		else{
			A = Utils.createMatrix(args[0]);
			b = Utils.createMatrix(args[1]);
		}
		Op.solveLU(A, b,Op.LU);
		Utils.writeMatrix(A, "izlaz.txt");
	}
}
